from django.conf.urls import url
from user.views import RegisterView, ActiveView, LoginView,LogoutView, UserInfoView, UserOrderView, AddressView
app_name = 'user'
urlpatterns = [
    # url(r'^register$',views.register,name='register'), # 注册
     url(r'^register$', RegisterView.as_view(), name='register'), # 注册
     url(r'^active/(?P<token>.*)$', ActiveView.as_view(), name='active'), # 用户激活
     url(r'^login$', LoginView.as_view(), name='login'), # 登录
     url(r'^logout$', LogoutView.as_view(), name='logout'), # 注销登录

     url(r'^$', UserInfoView.as_view(), name='user'),  # 用户中心-信息页
     url(r'^order$', UserOrderView.as_view(), name='order'),  # 用户中心-订单页
     url(r'^address$', AddressView.as_view(), name='address'),  # 用户中心-地址页

]
